<?php
namespace app\web\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class Store extends Validate
{
    //定义验证规则
    protected $rule = [
        'start_time'  => 'require',
        'end_time'  => 'require',
        'advance_down_block'  => 'require|number',
        'back_engineer_block'=>'require|number',
        'change_engineer_block'  => 'require|number',
        'sale_viper_rate'  => 'require|number',
        'type'  => 'require',
        'is_auto_queue'  => 'require',
        'is_auto_dirty_room'  => 'require',
        'is_user_scan'  => 'require',
        'is_later_card'  => 'require',
        'is_leave_early_card'  => 'require',
        'is_second_queue_add_block'  => 'require',
        'is_clean_room_check'  => 'require',
        'is_delay_add_block'  => 'require',
        'is_auto_cloud_print'  => 'require',
        'is_engineer_show_amount'  => 'require',
        'is_more_recharge'  => 'require',
        'is_main_act'  => 'require',
        'is_second_act'  => 'require',
        'is_hand_card_settle'  => 'require',
        'floor_commission_type'  => 'require',
        'receiver_order_commission_type'  => 'require',
        'cancel_order_block'  => 'require|number',
    ];
    //定义验证提示
    protected $message = [
        'start_time.require' => '请输入营业开始时间',
        'end_time.require' => '请输入营业结束时间',
        'advance_down_block.require' => '请输入提前下钟时长',
        'advance_down_block.number' => '提前下钟时长为整数',
        'back_engineer_block.require' => '请输入退技师时长',
        'back_engineer_block.number' => '退技师时长为整数',
        'change_engineer_block.require' => '请输入换技师时长',
        'change_engineer_block.number' => '换技师时长为整数',
        'sale_viper_rate.number' => '售卡提成为整数',
        'sale_viper_rate.require' => '请输入售卡提成',
        'type.require' => '请选择手牌模式',
        'is_auto_queue.require' => '请选择是否自动排钟',
        'is_auto_dirty_room.require' => '请选择是否脏房',
        'is_later_card.require' => '请选择迟到能打卡',
        'is_leave_early_card.require' => '请选择早退能打卡',
        'is_second_queue_add_block.require' => '请选择副项排钟算点钟',
        'is_delay_add_block.require' => '请选择超时自动加钟',
        'is_auto_cloud_print.require' => '请选择自动云打印',
        'is_engineer_show_amount.require' => '请选择技师app显示业绩',
        'is_more_recharge.require' => '请选择多人充值提成',
        'is_main_act.require' => '请选择自由开单主项动牌',
        'is_second_act.require' => '请选择自由开单副项动牌',
        'is_hand_card_settle.require' => '请选择发手牌模式房间结账',
        'floor_commission_type.require' => '请选择楼面提成设置',
        'receiver_order_commission_type.require' => '请选择下单提成设置',
        'cancel_order_block.require' => '请输入允许撤单时长',
        'cancel_order_block.number' => '允许撤单时长为整数',
    ];

}
